<template>
    <view class="wf-item-page" v-if="item.ispublic === 1">
        <image :src="item.imageUrl.replace(/\r\n/g, '')" mode="widthFix" class="item-img"/>
    </view>
</template>

<script>
export default {
    props: {
        item: {
            type: Object,
            require: true
        }
    },
	computed:{
		
	}
}
</script>

<style lang="scss" scoped>
.wf-item-page {
    background: #fff;
    border-radius: 10rpx;
}
.wf-item-page:active{
	background-color: #ccc;
	opacity: 1;
}

.item-img {
    width: 100%;
	border-radius: 20rpx;
	opacity: 0.9;
}

// .item-info {
//     display: flex;
//     align-items: center;
// 	background-color: #ccc;
// 	opacity: 0.5;
//     padding: 5px;
// }

.info-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 5px;
}

.info-nickname {
    font-size: 12px;
    color: #333;
}
</style>
